package com.prs.crm.action.oa.schedule;


import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.courser.struts.BaseAction;
import org.courser.ui.PaginationSupport;
import org.hibernate.criterion.DetachedCriteria;

import com.prs.crm.annotation.Clew;
import com.prs.crm.domain.hr.Person;
import com.prs.crm.domain.oa.schedule.Diary;
import com.prs.crm.domain.oa.schedule.DiaryReply;
import com.prs.crm.service.hr.PersonService;
import com.prs.crm.service.oa.schedule.DiaryReplyService;
import com.prs.crm.service.oa.schedule.DiaryService;
/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-4-17 15:52:35 日记回复
 */

public class DiaryReplyAction extends BaseAction{

	private static final long serialVersionUID = 1L;
	public DiaryReply diaryReply;
	public DiaryReplyService diaryReplyService;
	private PaginationSupport pagination;
	
	private Integer[] ids;
	
	private List<Diary> diary;
	private DiaryService diaryService;
	
	private List<Person> person;
	private PersonService personService;
	
	public List<Person> getPerson() {
		return person;
	}

	public void setPerson(List<Person> person) {
		this.person = person;
	}

	public PersonService getPersonService() {
		return personService;
	}

	public void setPersonService(PersonService personService) {
		this.personService = personService;
	}

	public List<Diary> getDiary() {
		return diary;
	}

	public void setDiary(List<Diary> diary) {
		this.diary = diary;
	}

	public DiaryService getDiaryService() {
		return diaryService;
	}

	public void setDiaryService(DiaryService diaryService) {
		this.diaryService = diaryService;
	}

	public DiaryReply getDiaryReply() {
		return diaryReply;
	}

	public void setDiaryReply(DiaryReply diaryReply) {
		this.diaryReply = diaryReply;
	}


	public DiaryReplyService getDiaryReplyService() {
		return diaryReplyService;
	}

	public void setDiaryReplyService(DiaryReplyService diaryReplyService) {
		this.diaryReplyService = diaryReplyService;
	}

	public PaginationSupport getPagination() {
		return pagination;
	}

	public void setPagination(PaginationSupport pagination) {
		this.pagination = pagination;
	}

	public Integer[] getIds() {
		return ids;
	}

	public void setIds(Integer[] ids) {
		this.ids = ids;
	}
	
//	@Action("listDiaryReply")
//	public String listDiaryReply(){
//		DetachedCriteria criteria=this.getPaginationHelper().createQuery(DiaryReply.class);
//		pagination=this.getPaginationHelper().prepare(pagination);
//		this.setPagination(this.getDiaryReplyService().listByPage(criteria, pagination));
//		return SUCCESS;
//	}
//	
//	@Action(value = "removeDiaryReply", results = {
//			@Result(name = "success", type = "redirect", location = "editDiaryReply"),
//			@Result(name = "error", type = "chain", location = "editDiaryReply") })
//	public String removeDiaryReply(){
//		this.getDiaryReplyService().batchRemove(ids);
//		this.setPrompt("删除成功！");
//		return SUCCESS;
//	}
//	
//	@Action(value = "saveDiaryReply", results = {
//			@Result(name = "success", type = "redirect", location = "editDiaryReply"),
//			@Result(name = "error", type = "chain", location = "editDiaryReply") })
//	public String saveDiaryReply(){
//		this.getDiaryReplyService().save(diaryReply);
//		this.setPrompt("添加成功！");
//		return SUCCESS;
//	}
//	
//
//	
//	@Action("myReply")
//	public String myReply(){
//		return SUCCESS;
//	}
}
